﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BabyFood.Entities;
using BabyFood.Data;

public partial class Controls_ControlVideoMod : System.Web.UI.UserControl
{

    /// <summary>
    /// Create by Quang IT
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiVideo();
        }
    }

    private void HienThiVideo()
    {
        int TotalRows = 0;
        TList<Video> TList_Video = DataRepository.VideoProvider.GetPaged("", "Id DESC", 0, 1, out TotalRows);

        dlVideo.DataSource = TList_Video;
        dlVideo.DataBind();
    }
}